package cn.stonemind.smu.common.controller;

import cn.stonemind.smu.common.entity.SmuResponse;
import cn.stonemind.smu.common.entity.system.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("user")
public class UserController {

    @GetMapping("getUserList")
    public SmuResponse getUserList(User user) {
        List userList = new ArrayList<>();
        User user1 = new User();
        user1.setId(1L);
        user1.setLoginName("石头暮年");
        user1.setUsername("stone");
        user1.setPassword("this is a password");
        userList.add(user1);

        return new SmuResponse().result(userList);
    }
}
